package com.itheima.tlias.service;

import com.itheima.tlias.dto.SelectClazzDTO;
import com.itheima.tlias.po.InsertClazzParam;
import com.itheima.tlias.po.SelectClazzPageParam;
import com.itheima.tlias.po.UpdateClazzParam;
import com.itheima.tlias.util.ResultUtil;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

public interface ClazzService {

    ResultUtil selectClazzByPage(SelectClazzPageParam param);

    int insertClazz(@Param("p") InsertClazzParam param);

    SelectClazzDTO selectClazzById(@PathVariable("id") Integer id);

    int deleteClazzById(@PathVariable("id")Integer id);

    int updateClazz(@Param("p") UpdateClazzParam param);

    List<SelectClazzDTO> selectClazzAll();
}
